<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Areas/MvcWiki.Web.Prototype.MVC2P1.Wiki/Shared/Wiki.Master" Inherits="System.Web.Mvc.ViewPage<IList<WikiNamespaceViewModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder_MvcWikiTitle" runat="server">
	Namespaces
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_MvcWikiMainHeader" runat="server">
    <h2>Namespaces</h2>
    <p>
        <%= Html.ActionLink("[Create]", "create") %>
    </p>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder_MvcWikiMainContent" runat="server">
    <ul>
        <% foreach (var wikiNamespaceViewModel in Model) { %>
        <li>
            <%= Html.RouteLink(wikiNamespaceViewModel.Name, new { controller = "wikipage", action = "index", @namespace = wikiNamespaceViewModel.Name }) %>
        </li>
        <% } %>
    </ul>
</asp:Content>